				<div class="section-content">
					<div class="row row-section-content" id="manga-section-content">
						<?php manga_render_desktop_manga_detail_box($data);?>
						<div class="col-md-8 col-xs-12 col-sm-12 left" id="left-8">
							<div class="chapt-panel" id="manga-chapt-panel">
								
								
                                
								<div role="tabpanel" class="chapt-tab">
									<div class="chapt-header">
										<ul class="nav nav-pills">
											<li role="presentation" class="active"><a data-toggle="tab" href="#manga-chapt-content">Danh sách chapter</a></li>
                                            <?php if(count($data['related'])>0){?>
											<li role="presentation"><a data-toggle="tab" href="#manga-chapt-sub-content">Manga Liên Quan <span class="badge"><?php echo count($data['related']); ?></span></a></li>
                                            <?php }?>
											
										</ul>
									</div>
									
									<div class="tab-content">
										<div class="tab-pane active fade in" id="manga-chapt-content">
											<?php echo manga_render_chapter($data['chapters']);?>
										</div>
										<?php if(count($data['related'])>0){?>
										<div class="tab-pane fade in" id="manga-chapt-sub-content">
											<?php echo manga_render_related_manga($data['related']); ?>
										</div><!-- /#manga-chapt-sub-content -->
                                        <?php }?>
									</div> <!-- End tab content -->
								</div>
								
								<div class="clr"></div>
							</div><!-- /.suggested-panel -->
							<div style="height:15px"></div>

							
						</div><!-- /.left -->
						
						
						
						
						
						<div class="col-md-4 col-xs-12 col-sm-12 right" id="right-4">





			<div class="right-block">
			<?php
			$fansub=mangaf2_manga_get_nguon_info($data['nguon']);
			echo manga_render_fansub_box($fansub);
			?>
			
			<script type="text/javascript">
				$(document).ready(function(){
					$('.author-edit-profile').on('click', function(e){
						e.preventDefault();
						fansubid = $(this).attr('rel');
						$.ajax({
							url : "index.php",
				    		type : 'POST',
				    		data : {
								module: 'ajax',
								act: 'fansub',
								action : 'user-can-edit-fansub',
								fansub_id: fansubid ,
				    		},
				    		success: function(dt){
								if(dt)
									newdt = $.parseJSON(dt);
								btns = [{btnName:'Hoàn tất', btnClass:'btn-primary', btnId:'btn-submit-edit-fansub', btnOnClick: ''}];
								btnsArray = popupFuncButtons(btns);
								
								if(newdt.type == "error"){
									
										popupFunc("popup-fansub-edit-form", "Sửa thông tin fansub", '', btnsArray, '');
										completeMessage = popupFuncMessage([newdt.message], "alert-danger");
										if(newdt.error_code == 403){
											console.log(newdt);
											$('#popup-fansub-edit-form').find('.modal-body').html(completeMessage);
										}else{
											
											replacePopupMessage("popup-fansub-edit-form", completeMessage);
										}
									
								}else{//if(type != error)
									popupFunc("popup-fansub-edit-form", "Sửa thông tin fansub", loadFansubEditHtml(newdt.message), btnsArray, '');
									$('#btn-submit-edit-fansub').on('click', function(e){
										$.ajax({
											url : "index.php",
								    		type : 'POST',
								    		data : {
												module: 'ajax',
												act: 'fansub',
												action : 'edit-fansub',
												fansub_id: fansubid,
												name: $('#popup-fansub-name').val(),
												facebook: $('#popup-fansub-facebook').val(),
												reg: $('#popup-fansub-reg').val(),
												image: $('#popup-fansub-image').val(),
												intro: $('#popup-fansub-intro').val(),
												
								    		},

								    		success: function(edt){
												if(edt){
													newEdt = $.parseJSON(edt);
console.log(newEdt);
													if(newEdt.type == 'error'){
														
															completeMessage = popupFuncMessage([newEdt.message], "alert-danger");
															replacePopupMessage("popup-fansub-edit-form", completeMessage);
														
														
													}else{
														completeMessage = popupFuncMessage([newEdt.message], "alert-success");
														replacePopupMessage("popup-fansub-edit-form", completeMessage);
													}
												}
									    	},
										});
									});
								}//end if(type!= error)
						    }
						});

					});


					
					
				});

				
			</script>
			<div class="right-section" id="right-fb-comment">
									<!-- Start disquz -->
                
											<div style="background-color:#fff; padding:5px">
		   <div id="disqus_thread"></div>
    <script type="text/javascript">
        /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
        var disqus_shortname = 'truyencuatui'; // required: replace example with your forum shortname

        /* * * DON'T EDIT BELOW THIS LINE * * */
        (function() {
            var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
            dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
            (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
        })();
    </script>
    <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
    </div>
    <!-- End disqus-->


							</div><!-- /#right-comment -->
					
						</div><!-- /.right -->
					</div><!-- /.left -->
				</div>
				<!-- /.section-content -->
			</div><!-- /#section-manga -->
			

              